package com.gw.vip.center.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gw.vip.center.po.UserInfo;
import org.apache.ibatis.annotations.Select;

/**
 * @author GW
 * @description
 * @since 2022-03-30
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {
    /**
     * 根据邮箱获取用户数据
     * @param mail
     * @return
     */
    @Select("SELECT * FROM user_info WHERE mail=#{mail}")
    UserInfo getByMail(String mail);
}
